<?php
/**
 * Created by PhpStorm.
 * User: zhangrongxiang
 * Date: 2018/2/18
 * Time: 下午9:39
 */

$foo = 'HelloWorld';
$foo = lcfirst( $foo );             // helloWorld
echo $foo . PHP_EOL;
$bar = 'HELLO WORLD!';
$bar = lcfirst( $bar );             // hELLO WORLD!
echo $bar . PHP_EOL;
$bar = lcfirst( strtoupper( $bar ) ); // hELLO WORLD!
echo $bar . PHP_EOL;


$string = "CamelCase";
$string{0} = strtolower($string{0});
echo $string.PHP_EOL; // outputs camelCase
